﻿using Mengsk.ProxyDelivery.Domain;
using Mengsk.ProxyDelivery.Print.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mengsk.ProxyDelivery.Print.Domain
{
    [Serializable]
    public class PrintTemplate
    {
        /// <summary>
        /// 模板名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 纸的类型
        /// </summary>
        public PaperType PaperType { get; set; }

        /// <summary>
        /// 快递信息
        /// </summary>
        public PrintTemplateCompany DeliveryCompany { get; set; }

        /// <summary>
        /// 宽度
        /// </summary>
        public double Width { get; set; }

        /// <summary>
        /// 高度
        /// </summary>
        public double Height { get; set; }

        /// <summary>
        /// 水平偏移
        /// </summary>
        public double XOffset { get; set; }

        /// <summary>
        /// 垂直偏移
        /// </summary>
        public double YOffset { get; set; }

        /// <summary>
        /// 打印项
        /// </summary>
        public List<PrintTemplateItem> Items { get; private set; }

        /// <summary>
        /// 背景图片
        /// </summary>
        public byte[] Image { get; set; }

        /// <summary>
        /// 其它图片
        /// </summary>
        public Dictionary<string, byte[]> AttachImages { get; set; }

        public PrintTemplate()
        {
            this.Items = new List<PrintTemplateItem>();
            this.AttachImages = new Dictionary<string, byte[]>();
        }
    }
}
